﻿<UserControl x:Class="WMSSoft.WinKStart.UserControls.WinKStartContextMenu"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="280"  d:DesignWidth="454">
    <Grid Margin="5">
        <Grid.RowDefinitions>
            <RowDefinition Height="AUTO" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <CheckBox Grid.Row="0" Margin="5" Content="Enable Contextmenu" IsChecked="{Binding Data.Enabled}"/>
        <ListBox Grid.Row="1" ItemsSource="{Binding ContextMenuItems}" IsEnabled="{Binding Data.Enabled}" Margin="5,0,0,0">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <CheckBox Content="{Binding Caption}" IsChecked="{Binding Value}" />
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Grid>
</UserControl>
